<%-- 
    Document   : AdminViewUniversity
    Created on : Nov 17, 2013, 5:09:27 PM
    Author     : smarzoug
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
<div id="header">
	<div id="logo">
		<h1><jsp:include page="header.html"/></h1>
		
  </div>
	<div id="menu">
		<ul>
			<jsp:include page="Adminoptions1.html"/>
		</ul>
	</div>
</div>

<div id="content">
	<div id="posts">
		<div class="post">
			
			<div class="meta">
	
		  </div>
<div class="story">
				
		  </div>
		</div>
		</div>
	<div id="sidebar">
		<div id="archives" class="boxed">
			<h2>UNIVERSITY DETAILS</h2>
			<div class="content">
				<ul><li>
				  <form id="form1" method="post" action="">
				    <%@ page import="java.util.*"%>
 <%@ page import="com.dts.uas.model.*"%>
  <%@ page import="com.dts.uas.dao.*"%>
  <%@ page import="com.dts.core.util.*" %>
  <%@ page import="java.util.*" %>
  <% 
  
  
  
  CollegesDAO acollegesdao=new CollegesDAO();
  CoreHash acorehash=acollegesdao.viewColleges();
  Enumeration aenumeration=acorehash.keys();
  int n=acorehash.size();
  
  %>
  <table width="784">
    <tr bgcolor="#999900"><td width="171"><span class="style3">CollegeName</span></td>
    <td width="212"><span class="style3">UniverSity</span></td>
    <td width="130"><span class="style3">City</span></td>
    <td width="96"><span class="style3">State</span></td>
    <td width="151"><span class="style3">Country</span></td>
    </tr>
  <%  while(aenumeration.hasMoreElements())
  {
  Integer i1=(Integer)aenumeration.nextElement();
 College acollege=(College)acorehash.get(i1);
 int sno=acollege.getSid();
 String collegename=acollege.getCollegename();
 String university=acollege.getUniversity();
 String city=acollege.getCity();
 String state=acollege.getState();
 String country=acollege.getCountry();
  %>
  <tr bgcolor="#99CCCC"><td><span class="style4"><%=collegename %></span></td><td><span class="style4"><%=university %></span></td><td><span class="style4"><%=city %></span></td><td><span class="style4"><%=state%></span></td><td><span class="style4"><%=country%></span></td></tr>
  
  <%} %></table>
 </form>
				</li>
				</ul>
		  </div>
	  </div>
		</div>
</div>
<div id="footer"></div>
</body>
</html>
